var object1 = argument0;
var object2 = argument1;
var distX = 0;
var distY = 0;
var dist = 0;

distX = object1.x - object2.x;
distY = object1.y - object2.y;

dist = sqrt( (distX*distX) + (distY*distY) );
return dist;